const babelParsers = require("prettier/parser-babel").parsers;
const typescriptParsers = require("prettier/parser-typescript").parsers;


function myPreprocessor(code, options) {
    return code + 'guangguangguang';
}

module.exports = {
    parsers: {
        babel: {
            ...babelParsers.babel,
            preprocess: myPreprocessor,
        },
        typescript: {
            ...typescriptParsers.typescript,
            preprocess: myPreprocessor,
        },
    },
};